home *** CD-ROM | disk | FTP | other *** search
- Path: news.primenet.com!not-for-mail
- From: bri@primenet.com (Brian Gregory)
- Newsgroups: comp.lang.c++
- Subject: Possible MFC bugs.. Memory leak problems
- Date: 28 Mar 1996 11:04:02 -0700
- Organization: Primenet Services for the Internet
- Sender: root@primenet.com
- Message-ID: <4jekai$4r6@nnrp1.news.primenet.com>
- X-Posted-By: ip058.phx.primenet.com
- X-Newsreader: Forte Free Agent 1.0.82
-
- I've created an application Framework in 'C++'. This framework simply
- serves as a GUI interface (status info only) for a small 'C' utility.
- Within the application's InitInstance call, I create a dialog, using
- DoModal(), and within the dialog's OnShowWindow() call the extern 'C'
- function. I return false from the InitInstance to assure program
- termination.
-
- My Problems/Questions/Possible Bugs are:
- 1) In Appinit.CPP, line #190, the string created with strdup() does
- not seem to be deallocated.
-
- 2) In Appinit.CPP, line #198, the string created with strdup() does
- not seem to be deallocated.
-
- 3) In Appinit.CPP, line #204, the string created with strdup() does
- not seem to be deallocated.
-
- 4) In Appinit.CPP, line #212, the string created with strdup() does
- not seem to be deallocated.
-
- 5) In AfxMem.CPP, line #321, the memory allocated with the malloc()
- does not seem to be deallocated.
-
- 6) In Auxdata.CPP, line #128, the pen created using CreatePen does not
- seem to ever have a DeleteObject called on it.
-
- 7) In Auxdata.CPP, line #129, the pen created using CreatePen does not
- seem to ever have a DeleteObject called on it.
-
- 8) In Auxdata.CPP, line #130, the pen created using CreatePen does not
- seem to ever have a DeleteObject called on it.
-
- Please note the following:
- - I am using VC++ 1.52 on a Win3.1 machine
- - None of the above functionality is directly called by my app.
- - These leaks were found with Boundschecker software, and are
- perfectly valid leaks.
- - The program displays no other memory problems, and appears to work
- correctly, shutting down correctly.
-
- If this is a programming error, please indicate what I can do to
- alleviate (or at least get a clue on where to look for) the errors I
- could be inducing.
-
- If this is an MFC error, please let me know what I can do to possibly
- bypass the problems - as I don't like shipping with problems like
- this.
-
- Thanks in advance,
-
- Brian Gregory
-
- bri@primenet.com
- http://www.primenet.com/~bri/index.html
-
-
-